package com.leilei.auth;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author lei
 * @create 2022-06-14 20:51
 * @desc 拦截配置类
 **/
@Data
@ConfigurationProperties(AuthProperties.MS_INTERCEPTOR)
public class AuthProperties {


    public static final String MS_INTERCEPTOR = "auth-interceptor";


    private String authUrl = "http://127.0.0.1:10001/user/jwt/check";

    private Boolean enable = true;

    /**
     * 是否区分内部外部接口 内部接口不允许通过网关处访问
     */
    private Boolean insideOrOutside = true;


}
